package com.hmsg.health.utils;

import javax.validation.constraints.NotNull;

import org.hibernate.validator.constraints.NotEmpty;

/**
 * 分页参数对象
 *
 * @author Lujq
 * @since 1.0.0
 */
public class PagingParam {

	@NotNull(message = "sort is null")
	protected int page;

	@NotEmpty(message = "size is null")
	protected int size;

	protected String sort;

	protected String direction;

	public int getPage() {
		return page;
	}

	public void setPage(int page) {
		this.page = page;
	}

	public int getSize() {
		return size;
	}

	public void setSize(int size) {
		this.size = size;
	}

	public String getSort() {
		return sort;
	}

	public void setSort(String sort) {
		this.sort = sort;
	}

	public String getDirection() {
		return direction;
	}

	public void setDirection(String direction) {
		this.direction = direction;
	}

}
